#include<bits/stdc++.h>
using namespace std;
int main()
{
	char ch;
	int cnt = 0, sum = 0;
	while(cin>>ch)
	{
		cnt++;
		sum += ch-'0';
	}
	cout<<cnt<<" "<<sum;
    return 0;
}

